#include<stdio.h>

int main()
{
	int m,i,n,k,sum=1;
	scanf("%d%d%d",&m,&n,&k);
	if (k>n)
		printf("Input Error\n");
	else if (m<=k)
	{
		for (i=n-m+1;i<=n;i++)
			sum*=i;
		printf("%d\n",sum);
	}
	else
	{
		sum=(m-k)*(n-k+1);
		for (i=n-k+1;i<=n;i++)
			sum*=i;	
		printf("%d\n",sum);
	}
	return 0;
}